package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * 阶段任务获取
 * @author 李少杰
 * @version v1.0.0
 * @date 2021/12/2 14:24
 */
@Getter
@Setter
@ToString
public class StageWorkGetDTO extends BaseDTO {

    @NotNull(message = "{dto.msg.stageProcessEnable.stageProcessId.NotNull}")
    private Long id;

    @NotNull(message = "{dto.msg.processEnable.formId.NotNull}")
    private Long formId;

    @DecimalMin(value = "1", message = "{dto.msg.processEnable.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.processEnable.saasMark.DecimalMax}")
    @NotNull(message = "{dto.msg.processEnable.saasMark.NotNull}")
    private Integer saasMark;

    private Integer businessType;
}
